import axios from "../api"; // 导入接口配置

//新增模版（一级菜单）
export const InsertParentModel = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/InsertParentModel", params);
};
//新增模版（二级菜单）
export const InsertPageModule = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/InsertPageModule", params);
};
//新增模块
export const InsertPageModel = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/InsertPageModel", params);
};
//删除模块
export const DeleteSinglePageModel = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/DeleteSinglePageModel", params);
};
//查询模块
export const GetPageModelByModuleId = async (params: any) => {
  return await axios.post(
    "/api/PageModuleSetup/GetPageModelByModuleId",
    params
  );
};

//模块排序
export const SortPageModule = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/SortPageModule", params);
};

//模版查询
export const GetAllPageModule = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/GetAllPageModule", params);
};
//删除模版
export const DeletePageModule = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/DeletePageModule", params);
};
//新增公司
export const InsertCompanyData = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/InsertCompanyData", params);
};

//添加logo
export const InsertOrUpdateLogo = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/InsertOrUpdateLogo", params);
};

//查询logo
export const GetLogo = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetLogo", params);
};

//查询系统名称、字体
export const GetSystemFont = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetSystemFont", params);
};

//系统名称、字体保存
export const InsertOrUpdateSystemFont = async (params: any) => {
  return await axios.post(
    "/api/CompanyModuleSetup/InsertOrUpdateSystemFont",
    params
  );
};

//公司查询
export const GetAllCompanyData = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetAllCompanyData", params);
};

//编辑公司
export const UpdateCompanyData = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/UpdateCompanyData", params);
};

//删除公司
export const DeleteCompanyData = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/DeleteCompanyData", params);
};

//编辑产品信息
export const UpdateMdsInfomation = async (params: any) => {
  return await axios.post(
    "/api/CompanyModuleSetup/UpdateMdsInfomation",
    params
  );
};

//获取产品信息
export const GetMdsInfomation = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetMdsInfomation", params);
};

//获取模块信息(token)
export const GetPageModelByToken = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/GetPageModelByToken", params);
};

//获取应用类型列表
export const GetApplicationType = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetApplicationType", params);
};

//获取模块应用类型列表
export const GetModuleType = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetModuleType", params);
};
//删除主菜单
export const DeleteParentModel = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/DeleteParentModel", params);
};
//编辑主菜单
export const UpdateParentModel = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/UpdateParentModel", params);
};
//查询设备类型列表
export const GetMobdevicetype = async (params: any) => {
  return await axios.post("/api/Test/GetMobdevicetype", params);
};
